package com.youi.shop.pojo.vo.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.youi.shop.pojo.entity.OrderItem;
import com.youi.shop.pojo.vo.address.MemberAddressVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @version 1.0
 * @Author: xxf
 * @CreateDate: 2020/11/11 19:32
 */
@Data
public class OrderVO {

    @ApiModelProperty(value = "会员主键")
    private Long memberId;

    @ApiModelProperty(value = "地址表主键")
    @TableField("address_id")
    private Long addressId;

    @ApiModelProperty(value = "订单编号")
    private String orderSn;

    @ApiModelProperty(value = "提交时间")
    private Date createTime;

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "支付方式：0->未支付；1->支付宝；2->微信")
    private Integer payType;

    @ApiModelProperty(value = "订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单")
    private Integer status;

    @ApiModelProperty(value = "订单备注")
    private String note;

    @ApiModelProperty(value = "订单评价")
    private String orderComment;

    @ApiModelProperty(value = "评价时间")
    private Date commentTime;

    @ApiModelProperty(value = "支付时间")
    private Date paymentTime;

    @ApiModelProperty(value = "发货时间")
    private Date deliveryTime;

    @ApiModelProperty(value = "确认收货时间")
    private Date receiveTime;

    @ApiModelProperty(value = "确认收货状态：0->未确认；1->已确认")
    private Integer confirmStatus;

    private MemberAddressVO memberAddressVO;

    private List<OrderItem> orderItems;

}
